home *** CD-ROM | disk | FTP | other *** search
- on GetRandomListOfTen iChoiceSize
- set list to []
- repeat with n = 1 to 10
- set iNewNumber to random(iChoiceSize)
- repeat while getPos(list, iNewNumber) <> 0
- set iNewNumber to random(iChoiceSize)
- end repeat
- add(list, iNewNumber)
- end repeat
- return list
- end
-